package com.xuesinuo.ots.config.pojo;

import java.util.Collection;

import lombok.Data;

@Data
public final class PageResult<T> {
    private Long total;
    private Object data;
    private Collection<? extends Object> list;

    public PageResult(Long total, Collection<T> list, Object data) {
        this.total = total;
        this.list = list;
        this.data = data;
    }

    public PageResult(Long total, Collection<T> list) {
        this.total = total;
        this.list = list;
    }
}
